package com.wlz.structural.decorator.optimization;


import java.io.FileNotFoundException;

public class Client {
    public static void main(String[] args) throws FileNotFoundException {
        ABattercake aBattercake = new Battercake();

        //加两个蛋的
        aBattercake = new EggDecorator(aBattercake);
        aBattercake = new EggDecorator(aBattercake);

        aBattercake = new SausageDecorator(aBattercake);

        System.out.println(aBattercake.getDesc()+" 销售价格:"+aBattercake.cost());

    }
}
